package com.zero.manage.web.components.service;

import com.zero.manage.web.components.entity.rbac.SysPowerEntity;
import com.zero.manage.web.components.query.SysPowerQuery;
import com.zero.manage.web.components.vo.SysPowerVO;
import io.gitee.zerowsh.enums.ToolEnums;
import io.gitee.zerowsh.util.PublicResult;
import com.zero.manage.web.components.base.IBase;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

@Repository
public interface SysPowerService extends IBase<SysPowerEntity, String, SysPowerQuery> {
    PublicResult<List<SysPowerVO>> tree(ToolEnums.PowerTypeEnums type);

    /**
     * 获取用户菜单和路由
     *
     * @return
     */
    Map<String, Object> getUserMenuAndRouter(String name);

    PublicResult getPowerIdsByRoleId(String roleId);

}
